<?php
namespace Admin\Model;
use Think\Model;
class AdminModel extends Model {
	public function login($name,$password){
		$password=md5($password);
		$user_info=$this->where("name='{$name}' AND password='{$password}'")->find();
		if($user_info){
			session("User_id",$user_info["id"]);
			return	1; 
		}
	}
}